package com.guli.mall.pms.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/*
 * @Author 罗
 * @date 2020/10/18 - 9:18 上午
 */
@ConfigurationProperties(prefix = "guli.thread")
//@Component
@Data
public class ThreadPoolConfigProperties {

    private static final Integer DEFAULT_CORE_THREAD_POOL_SIZE = 10;

    private Integer coreThreadPoolSize = DEFAULT_CORE_THREAD_POOL_SIZE;

    private Integer maximumPoolSize = 20;

    private Integer keepAliveTimeSeconds = 30;

}
